import { GithubOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-components';
import React from 'react';

const Footer: React.FC = () => {
  const defaultMessage = '校园外卖';
  const currentyear = new Date().getFullYear();
  return (
    <DefaultFooter
      copyright={`${currentyear} ${defaultMessage}`}
      style={{
        background: 'none',
      }}
      links={[
        {
          key: 'school',
          title: '武昌工学院',
          href: 'https://www.wuit.cn/',
          blankTarget: true,
        },
        {
          key: 'college',
          title: '信息工程学院',
          href: 'https://dq.wuit.cn/xbxw.htm',
          blankTarget: true,
        },
        {
          key: 'github',
          title: <><GithubOutlined />胡成星 Github</>,
          href: 'https://github.com/ant-design/ant-design-pro',
          blankTarget: true,
        },
      ]}
    />
  );
};

export default Footer;
